Skip to content

Set CGO_ENABLED=0 in Dockerfile for fully-static builds#132

Closed
korbin wants to merge 2 commits intojwilder:masterfrom
korbin:master
Closed

Set CGO_ENABLED=0 in Dockerfile for fully-static builds#132
korbin wants to merge 2 commits intojwilder:masterfrom
korbin:master

Conversation

@korbin
Copy link
Copy Markdown

@korbin korbin commented Apr 26, 2019

This PR sets CGO_ENABLED=0 in Dockerfile so that libc.musl isn't dynamically linked.

With this PR, COPY --from=jwilder/dockerize /usr/local/bin/dockerize /usr/local/bin/dockerize should work on all like-architecture Linux images.

@gilbsgilbs
Copy link
Copy Markdown

Any chance this can be merged and released on Docker hub? How can we help you, @jwilder? Cutting out a new release would also fix #143 apparently.

Thank you for the great work 🙏!

@jwilder
Copy link
Copy Markdown
Owner

jwilder commented Apr 8, 2026

Closing this PR as it has been superseded — CGO_ENABLED=0 is already set in the current Dockerfile (implemented in #278). Thanks for the contribution!

@jwilder jwilder closed this Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants